import Vue from 'vue'
import router from './router'
import App from './App.vue'
import store from './store/index';


import Utils from './assets/js/utils.js';
Vue.prototype.$utils=Utils;

import Common from './assets/js/common'
Vue.use(Common);

import Constant from './constants/constant';
Vue.prototype.$constant=Constant;

//import Echarts from 'echarts'
//Vue.prototype.$echarts = Echarts

import './assets/style/erp/index.css'
import './assets/style/erp/common.css'
import ElementUI from 'element-ui'
Vue.use(ElementUI,{size: 'mini'})


import Axios from 'axios'
Vue.prototype.$http=Axios

//自定义全局组件
import table_pager from './components/table_pager.vue';
Vue.component("table-pager",table_pager)//订单状态

//--自定义全局组件

let DEV_VUE_APP_URL='/admin-service'
const apiHost = process.env.NODE_ENV === 'development' ? DEV_VUE_APP_URL : process.env.VUE_APP_URL
Axios.defaults.baseURL =  apiHost

import Qs from 'qs'
Vue.use(Qs)

Vue.config.productionTip = false
let vueMain=new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
  methods: {

  },
  mounted() {

  }
})
export default vueMain
import qiankun from './qiankun'

Axios.defaults.timeout=2*60*1000
Axios.defaults.headers={'token':vueMain.$store.state.sessionUser.token}

